
class Dog {
    public String name;
    public String sort;
    public double age;   //狗的属性
    public void bark(){
        System.out.println(name+"在汪汪汪");
    }
    public void sleep(){
        System.out.println(name+"在睡觉");
    }
    public void wag(){
        System.out.println(name+"在摇尾巴");
    }  //成员方法
}
